package com.lagou;


import com.lagou.server.NettyRpcServer;
import com.lagou.server.Server;
import com.lagou.server.UserService;
import com.lagou.server.UserServiceImpl;

//@SpringBootApplication
public class Application2 {
    public static void main(String[] args) throws InterruptedException {

        Server server = new NettyRpcServer("127.0.0.1",8091);
        server.register(UserService.class, UserServiceImpl.class);
        server.start();


    }
}
